package com.ubing.gpermission.permission.runner;

import com.ubing.gpermission.permission.bean.PermissionSource;
import jakarta.annotation.Resource;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

public class PermissionRunner implements ApplicationRunner {

	@Resource
	PermissionSource permissionSource;

	@Override
	public void run(ApplicationArguments args) {

		System.out.println("权限加载成功：");
		System.out.println(permissionSource.getPermissionList());
	}
}
